#include "Noeud.hpp"
class RegionImage{
	private:
		vector<Noeud * >liste;
		double m_moyenne;
		int m_id;
	protected:
	public:
		static int m_compteur;
                RegionImage(Noeud * n, double moyenne);
                static map <int, RegionImage * > m_total;
                static void add(RegionImage * e);
		int getId();
                int getTaille()const{return liste.size();}
                void ajoute(const RegionImage& );
                void ajouteNoeud(Noeud * n, double moyenne);
		void vide();
		vector<Noeud*> getListe ()const;
		Noeud *  operator[] (int i)const;
                static map <int, RegionImage * > *  getTotal();
		double getMoyenne() const;
                void afficheRegion(IplImage* im);
		static void erase(int id);
                void fillImage(QImage & im);
                static void detruit();
};
